package com.cqjtu.tto.dao.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 工资
 * </p>
 *
 * @author MrLuo
 * @since 2021-12-14
 */
@Data
@ApiModel(value = "员工工资模型")
@EqualsAndHashCode(callSuper = false)
public class Salary extends Model<Salary> {

    private static final long serialVersionUID = 1L;

    /**
     * 工资id
     */
    @ApiModelProperty(value = "工资id")
    @TableId(value = "salary_id", type = IdType.AUTO)
    private Long salaryId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Long userId;

    /**
     * 工资生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "工资生成时间")
    private LocalDateTime salaryCreat;

    /**
     * 基本工资
     */
    @ApiModelProperty(value = "基本工资")
    private BigDecimal baseSalary;

    /**
     * 绩效工资
     */
    @ApiModelProperty(value = "绩效工资")
    private BigDecimal performanceSalary;



    @Override
    public Serializable pkVal() {
        return this.salaryId;
    }

}

